﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lista de Avisos
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Lista de Avisos</h2>
     <table>
        <tr>
            <th>Acciones</th>
            <th>Código</th>
            <th>Nombres</th>
            <th>Apellidos</th>
            <th>Correo</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { Codigo = item.Codigo }) %> |
                <%: Html.ActionLink("Ver", "Details", new { Codigo = item.Codigo })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { Codigo = item.Codigo })%>
            </td>
            <td>
                <%: item.Codigo %>
            </td>
            <td>
                <%: item.Nombres %>
            </td>
            <td>
                <%: item.Apellidos %>
            </td>
            <td>
                <%: item.Correo %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Nuevo", "Create") %>
    </p>
</asp:Content>
